<template>
	<view class="item" 
	:class="[showBorder?'showBorder':'']"
	 v-if="item.value !== '-'"
	>
		<view class="item-value">{{item.value}}</view>
		<view class="item-name">{{item.name}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default () {
					return {}
				}
			},
			showBorder:{
				type:Boolean,
				default:false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.showBorder{
		border-bottom: #FFFFFF 2upx solid;
	}
	.item {
		text-align: center;
		padding: 40upx 0;
		&-value {
			font-size: 32upx;
			color: #ffffff;
		}

		&-name {
			padding-top: 20upx;
			font-size: 20upx;
			color: #ffffff;
		}
	}
</style>
